<!doctype html>
<html>
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  {$web_title = setting_helper::get_title()}
  <title>{if $title}{$title}-{/if}{$web_title}</title>
  <base href="{$smarty.const.SITE_URL}/"></base>
  <script type="text/javascript">
    var siteUrl = "{$smarty.const.SITE_URL}";
    var uploadUrl = "{$smarty.const.UPLOAD_URL}";
    var isAdmin = 1;
  </script>
  {load_css file="css/base.css"}
  {load_css file="css/admin/admin.css"}
  {load_js file='jquery-1.7.1.min.js'}
  {load_js lib='jquery-ui'}
  {load_js file="jquery-ui-timepicker-addon.js"}
  {load_js file='common.js?b=time()'}
  {load_js file='admin.js'}
  {load_js file='qDialog.js'}
  
  {load_js file='ueditor1_4_3/ueditor.config.js'}
  {load_js file='ueditor1_4_3/ueditor.all.js'}
  {load_js file="uploadify/jquery.uploadify.min.js"}
  <!--[if IE 6]>
  <script src="../js/DD_belatedPNG_0.0.8a-min.js"></script>
  <script>
    DD_belatedPNG.fix('.logo a,.n-icon');
  </script>
  <![endif]-->
  <script>
  $(function(){
    // 页面高度
    var windowHeight = $(window).height();
    var domHeight = $(document).height();
    if (domHeight > windowHeight) {
      windowHeight = domHeight;
    }
    if ($(".inner-center").height() < windowHeight - 66) {
      $(".inner-center").css('min-height', windowHeight - 66);
      //$('body').css('overflow', 'hidden');
    }
    
    // 用户设置浮层
    $(".js_userSetBtn").click(function(e){
     e.preventDefault();
     e.stopPropagation();
     
     $(".js_cardSetBox").addClass('hidden');
     if ($(".js_userSetBox").hasClass('hidden')) {
       $(".js_userSetBox").removeClass('hidden');
     } else {
       $(".js_userSetBox").addClass('hidden');
     }
    });
  });
  </script>
</head>
<body>
<div id="wrap">
  <div class="header">
    <div class="htop clearfix">
      {*LOGO*}
      {$logo = setting_helper::get_logo()}
      <h1 class="logo left"><a href="{AnUrl('admin')}" style="color:white; font-size:18px">{*<img src="{_image($logo)}" width="110" height="33" alt="{$web_title}">*}抱抱堂管理后台</a></h1>
      {if $user_id > 0}
        {*个人信息*}
        <div class="infotop">
          <span class="username-right js_userSetBtn">
            <a href="javascript:;" class="username">{user_helper::display_name()}</a>
            <span class="arrowtop">
              <i></i>
            </span>
          </span>
          <div class="poptop poptop-user js_userSetBox hidden">
            <em>◆</em>
            <ul>
              <li><a href="{AnUrl('user/admin/password')}">修改密码</a></li>
              <li><a href="{AnUrl('admin/logout')}">退出</a></li>
            </ul>
          </div>
        </div>
      {else}
        <div class="htop-login right">
          <a href="{AnUrl('admin')}">登录</a>
          <a href="{AnUrl('user/register')}">注册</a>
        </div>
      {/if}
    </div>
  </div>
  <div class="container">
    {include_core file="admin/lib/sidebar.html"} 
    <div class="center">
      <div class="inner-center">